var Res = { 
	snode : '',
	sinCount:10
};
var UTYPE = { //用户类型
    ADMIN: 0, //平台管理员
    PROADMIN: 10, //课程管理员
    PROVIDER: 20, //课程提供商
    TUTOR: 30, //辅导老师
    STUDENT: 40, //学生
    VISITOR: 1000 //游客
};
var STULEVEL = { //学生级别
    LAYMAN: 1, //门外汉
    TRAINEE: 2, //实习生
    ENGINEER: 3, //工程师
    PROJECTMANAGER: 4 //项目经理
};
var STATUS = { //各种状态
        COMMIT: 1, //提交
        UNCOMMIT: 2, //未提交
        PASS: 3, //通过
        REJECT: 4, //拒绝
        RECOMMEND: 5, //已推荐
        UNRECOMMEND: 6, //未推荐        
        UNREAD: 7, //未读
        READ: 8, //已读
        VERIFYING: 9, //审核中
        NORMAL: 10, //账号正常
        ACTIVE: 11, //屏蔽
        UNACTIVE: 12, //封号
};
var CHAPTERTYPE = {
    CHAPTER: 0, // 正常章节
    COURSEEXAM: 1, //课程结业考试
};
var EXAMTYPE = { //试题类型
    SINGLE_CHOICE: 1, //单选，
    MULTIPLE_CHOICE: 2, //多选，
    JUDGE: 3, //判断，
    LIGATURE: 4, //连线（匹配）,
    SORT: 5, //排序
};
var EXAMTYPE_LABEL = { //试题类型
    1: "单选题", //单选，
    2: "多选题", //多选，
    3: "判断题", //判断，
    4: "连线题", //连线（匹配）,
    5: "排序题" //排序,
};
var STATUS_HTML = {};
STATUS_HTML[STATUS.COMMIT] = "<span class='label label-warning'>待审核</span>"; //提交
STATUS_HTML[STATUS.UNCOMMIT] = "<span class='label label-'>未提交</span>"; //未提交
STATUS_HTML[STATUS.PASS] = "<span class='label label-success'>通过</span>"; //通过
STATUS_HTML[STATUS.REJECT] = "<span class='label label-important'>拒绝</span>"; //拒绝
STATUS_HTML[STATUS.UNPUBLISH] = "<span class='label label-'>未发布</span>";; //未提交
STATUS_HTML[STATUS.RECOMMEND] = "<span class='label label-success'>已推荐</span>"; //推荐
STATUS_HTML[STATUS.UNRECOMMEND] = "<span class='label label-important'>未推荐</span>"; //未推荐

var UTYPETEXT = {}
UTYPETEXT[UTYPE.ADMIN] = [ //用户类型文本
    {
    	type:UTYPE.PROADMIN,
    	text:"课程管理员"
    },//课程管理员
    {
    	type:UTYPE.PROVIDER,
    	text:"课程提供商"
    }, //课程提供商
    {
    	type:UTYPE.TUTOR,
    	text:"辅导老师"
    }, //辅导老师
];
UTYPETEXT[UTYPE.PROADMIN] = [
    {
    	type:UTYPE.TUTOR,
    	text:"辅导老师"
    }

];
UTYPETEXT[UTYPE.PROVIDER] = [
	{
    	type:UTYPE.TUTOR,
    	text:"辅导老师"
    }
];
UTYPETEXT[UTYPE.PROVIDER] = [];
UTYPETEXT[UTYPE.TUTOR] = [];
var PROJECTTYPE = {
    BLOCK: 0, // 功能块
    POINT: 1, // 功能点
    CHAPTER: 2 //章节
};
var Menu = {}
Menu[UTYPE.ADMIN] = [
	{
		title: "首页",
		url: "index.html",
		icon: "home"
	},
	{
		title: "用户管理",
		icon: "user",
		css: {bg:"blue",href:"userList.html?ptab=user&ctab=group",icon:"user"},
		child: [
			{
				title: "创建用户",
				url: "userCreate.html",
				icon: "smile"
			},
			{
				title: "用户列表",
				url: "userList.html",
				icon: "group"
			}
		]
	},
	{
		title: "线下培训点管理",
		icon: "flag-checkered",
		css: {bg:"green",href:"trainpointList.html?ptab=flag-checkered&ctab=th",icon:"flag-checkered"},
		child: [
			{
				title: "新培训点",
				url: "trainpointCreate.html",
				icon: "flag-alt"
			},
			{
				title: "培训点列表",
				url: "trainpointList.html",
				icon: "th"
			}
		]
	},
	{
		title: "IT方向管理",
		icon: "desktop",
		css: {bg:"orange",href:"directionManage.html?ptab=desktop&ctab=hand-right",icon:"desktop"},
		child: [
			{
				title: "新建方向",
				url: "directionCreate.html",
				icon: "location-arrow"
			},
			{
				title: "方向管理",
				url: "directionManage.html",
				icon: "hand-right"
			}
		]
	},
	{
		title: "项目管理",
		icon: "folder-close",
		css: {bg:"purple",href:"projectManage.html?ptab=folder-close&ctab=retweet",icon:"folder-close"},
		child: [
			{
				title: "审核项目",
				url: "projectCheck.html",
				icon: "heart"
			},
			{
				title: "生成项目",
				url: "projectCreate.html",
				icon: "inbox"
			},
			{
				title: "推荐项目",
				url: "projectRecommend.html",
				icon: "signin"
			}
		]
	},
	{
		title: "课程管理",
		icon: "calendar-empty",
		css: {bg:"red",href:"courseManage.html?ptab=calendar-empty&ctab=puzzle-piece",icon:"calendar-empty"},
		child: [
			{
				title: "审核课程",
				url: "courseCheck.html",
				icon: "crop"
			},
			{
				title: "生成课程",
				url: "courseCreate.html",
				icon: "mail-forward"
			},
			{
				title: "推荐课程",
				url: "courseRecommend.html",
				icon: "random"
			}			
		]
	},
	{
		title: "通告管理",
		icon: "volume-down",
		css: {bg:"pink",href:"broadCastManage.html?ptab=volume-down&ctab=hand-right",icon:"volume-down"},
		child: [
			{
				title: "新建通告",
				url: "broadCastCreate.html",
				icon: "book"
			},
			{
				title: "通告管理",
				url: "broadCastManage.html",
				icon: "cloud"
			}
		]
	},
	{
		title: "问题与反馈",
		url: "feedback.html",
		icon: "edit",
		css: {bg:"fb",href:"feedback.html",icon:"edit"}
	},
	{
		title: "举报",
		url: "report.html",
		icon: "warning-sign",
		css: {bg:"muted",href:"report.html",icon:"warning-sign"}
	}

];
Menu[UTYPE.PROADMIN] = [
	{
		title: "首页",
		url: "index.html",
		icon: "home"
	},
	{
		title: "用户管理",
		icon: "user",
		css: {bg:"blue",href:"userList.html?ptab=user&ctab=group",icon:"user"},
		child: [
			{
				title: "创建用户",
				url: "userCreate.html",
				icon: "smile"
			},
			{
				title: "用户列表",
				url: "userList.html",
				icon: "group"
			}
		]
	},
	{
		title: "项目管理",
		icon: "folder-close",
		css: {bg:"purple",href:"projectManage.html?ptab=folder-close&ctab=retweet",icon:"folder-close"},
		child: [
			{
				title: "审核项目",
				url: "projectCheck.html",
				icon: "heart"
			},
			{
				title: "生成项目",
				url: "projectCreate.html",
				icon: "inbox"
			}
		]
	},
	{
		title: "课程管理",
		icon: "calendar-empty",
		css: {bg:"red",href:"courseManage.html?ptab=calendar-empty&ctab=puzzle-piece",icon:"calendar-empty"},
		child: [
			{
				title: "审核课程",
				url: "courseCheck.html",
				icon: "crop"
			},
			{
				title: "生成课程",
				url: "courseCreate.html",
				icon: "mail-forward"
			}
		]
	},
	{
		title: "问题与反馈",
		url: "feedback.html",
		icon: "github-sign",
		css: {bg:"fb",href:"feedback.html",icon:"edit"}
	},
	{
		title: "举报",
		url: "report.html",
		icon: "warning-sign",
		css: {bg:"muted",href:"report.html",icon:"warning-sign"}
	}

];
Menu[UTYPE.PROVIDER] = [
	{
		title: "首页",
		url: "index.html",
		icon: "home"
	},
	{
		title: "用户管理",
		icon: "user",
		css: {bg:"blue",href:"userList.html?ptab=user&ctab=group",icon:"user"},
		child: [
			{
				title: "用户列表",
				url: "userList.html",
				icon: "group"
			}
		]
	},
	{
		title: "讲师管理",
		icon: "gift",
		css: {bg:"contrast",href:"teacherList.html?ptab=gift&ctab=fire",icon:"gift"},
		child: [
			{
				title: "创建讲师",
				url: "teacherUpdate.html",
				icon: "leaf"
			},
			{
				title: "讲师列表",
				url: "teacherList.html",
				icon: "fire"
			}
		]
	},	
	{
		title: "项目管理",
		icon: "folder-close",
		css: {bg:"purple",href:"projectManage.html?ptab=folder-close&ctab=retweet",icon:"folder-close"},
		child: [
			{
				title: "管理项目",
				url: "projectManage.html",
				icon: "retweet"
			}
		]
	},
	{
		title: "课程管理",
		icon: "calendar-empty",
		css: {bg:"red",href:"courseManage.html?ptab=calendar-empty&ctab=puzzle-piece",icon:"calendar-empty"},
		child: [
			{
				title: "管理课程",
				url: "courseManage.html",
				icon: "puzzle-piece"
			}
		]
	},
	// {
	// 	title: "试题管理",
	// 	url: "exam.html",
	// 	icon: "keyboard",
	// },
	{
		title: "问题与反馈",
		url: "feedback.html",
		icon: "github-sign",
		css: {bg:"fb",href:"feedback.html",icon:"edit"}
	},
	{
		title: "举报",
		url: "report.html",
		icon: "warning-sign",
		css: {bg:"muted",href:"report.html",icon:"warning-sign"}
	}

];
Menu[UTYPE.TUTOR] = [
	{
		title: "首页",
		url: "index.html",
		icon: "home"
	},
	{
		title: "用户管理",
		icon: "user",
		css: {bg:"blue",href:"userList.html?ptab=user&ctab=group",icon:"user"},
		child: [
			{
				title: "用户列表",
				url: "userList.html",
				icon: "group"
			}
		]
	},

];
Menu[UTYPE.VISITOR] = [];
